`include "C:\Users\lenovo\Desktop\Files\Linear_RISCV\LR_ver_0\src\include\include.vh"
module 	ohc2bin(
    input   	[5:0]			imm_type_ohc,
    output reg  [2:0]           imm_type_byc
);
    always @(*) begin
        case (imm_type_ohc)
            6'b000001:imm_type_byc = 3'b001;//I    type             
            6'b000010:imm_type_byc = 3'b010;//S    type
            6'b000100:imm_type_byc = 3'b011;//B    type
            6'b001000:imm_type_byc = 3'b100;//Jal  type
            6'b010000:imm_type_byc = 3'b101;//Jalr type
            6'b100000:imm_type_byc = 3'b110;//U    type
            default  :imm_type_byc = 3'b000;//Non imm
        endcase
    end
endmodule